<?php
	namespace app\advert\model;

	use think\Model;

	class Advert extends Model
	{
		protected  $table = 'xb_advert';

		public static function getAdv($id = null){
			if ($id == null) return null;
			$adv = self::get($id);
			return $adv;
		}
	}
	